<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/emp/list.html" method="post">
    姓名:<input type="text" name="name" value="${employee.name}"/>
    编号：<input type="text" name="id"  value="${employee.id}"/>
    <input type="submit" value="查询"/>
</form>
<c:forEach items="${employees}" var="emp">
    编号：${emp.id}<br/>
    姓名：${emp.name}<br/>
    部门：${emp.dept.name}<br/>
    入职日期：<fmt:formatDate value="${emp.hireDate}" pattern="yyyy-MM-dd"/><br/>
    ----------------------------------<br/>
</c:forEach>
</body>
</html>
